package com.shj.em.biz.sell.service;

import com.shj.em.biz.sell.dto.QuotSearchDTO;
import com.shj.em.biz.sell.entity.Quotation;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.Date;

/**
 * 报价信息 服务类
 *
 * @author Shen Huang Jian
 * @since 2018-07-07
 */
public interface QuotationService extends IService<Quotation> {

    /**
     * 分页查询
     * @return
     */
    Page<Quotation> queryQuotationPage(QuotSearchDTO searchDTO);

    /**
     * 返回主键ID
     * @param quotation
     * @return
     */
    Quotation createQuotation(Quotation quotation);

    Long convert2Order(Long quotId);

    boolean isQuotNoExist(String quotNo, Long excludeId);

    String genQuotationNo(Date date);
}
